package com.yklx.youke.repository;

import com.yklx.youke.entity.UserRole;
import com.yklx.youke.entity.UserRoleKey;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserRoleRepository extends JpaRepository<UserRole, UserRoleKey> {
    List<UserRole> findByUserId(String userId);
    
    void deleteByUserId(String userId);
    
    void deleteByRoleId(String roleId);
}